package com.turnengine.client.global.game;

import java.util.Collection;
import java.util.List;

import com.turnengine.client.global.game.bean.IGameDefinition;

public interface IGameDefinitionCache extends Iterable<IGameDefinition> {

	int size();

	void clear();

	boolean addGameDefinition(IGameDefinition faction);

	int addGameDefinitions(Collection<IGameDefinition> factions);

	IGameDefinition getById(int id);

	boolean containsById(int id);

	List<IGameDefinition> getAll();

}
